<template>
  <div>
    首页
    <el-button type="info" @click="logout">退出</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
  methods: {
    // 退出登录
    logout(){
      window.sessionStorage.clear()
      this.$message.success('退出成功')
      this.$router.push('/login')
    }
  },
}
</script>

<style lang="sass" scoped>

</style>